package com.design.adapter;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class V5PowerAdapter implements V5Power{


    private V220Power v220Power;

    public V5PowerAdapter(V220Power v220Power){
        this.v220Power=v220Power;
    }

    @Override
    public int providerV5Power() {
        int v220 = v220Power.provider220VPower();
        log.info("220经过处理 变成 5v");
        return 5;
    }
}
